package ar.edu.unlp.info.tesis.controladores.lrs;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

import ar.edu.unlp.info.tesis.controladores.lrs.exceptions.StatementException;

public class ExperienceAPIController extends GenericRestController{

	@ExceptionHandler(StatementException.class)
	@ResponseBody
	public ResponseEntity<String> statementError(StatementException exception)
	{
		return new ResponseEntity<String>(exception.getMessage(), exception.getStatus());
	}
}
